// Copyright (c) 2010 Manuel Peinado Gallego <manuel.peinado@gmail.com>
// Distributed under the MIT license

#include "stdafx.h"
#include "NodeHandle.h"
#include "PythonManager.h"

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// Create Python wrappers. This code be called once the Python manager
// has been properly initialized

MPG_BEGIN_PYTHON_REGISTRATION(101)

    // Add wrapper for Node class. Node is synomym for ref<Node>
    // in the python side
    pyManager().addClass(
        "NodeHandle", 
        bpy::class_<NodeHandle>(
            "NodeHandle", 
            bpy::no_init
        )
        
        .def("getNode", &NodeHandle::getNode)
    );

MPG_END_PYTHON_REGISTRATION 

